package net.wanho.entity;

import com.baomidou.mybatisplus.annotation.*;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.math.BigDecimal;
import java.time.LocalDateTime;

/**
 * 出库单表
 * @TableName out_store
 */
@TableName(value ="out_store")
@Data
@NoArgsConstructor
public class OutStore {
    /**
     * 出库单id
     */
    @TableId(type = IdType.AUTO)
    private Integer outsId;

    /**
     * 商品id
     */
    private Integer productId;

    /**
     * 仓库id
     */
    private Integer storeId;

    /**
     * 理货员id
     */
    private Integer tallyId;

    /**
     * 出库价格
     */
    private BigDecimal outPrice;

    /**
     * 出库数量
     */
    private Integer outNum;

    /**
     * 创建用户id
     */
    @TableField(fill = FieldFill.INSERT)
    private Integer createBy;

    /**
     * 创建时间
     */
    @TableField(fill = FieldFill.INSERT)
    private LocalDateTime createTime;

    /**
     * 出库状态：0 否 1 是
     */
    private String isOut;

    public OutStore(Integer productId, Integer storeId, Integer tallyId, BigDecimal outPrice, Integer outNum, String isOut) {
        this.productId = productId;
        this.storeId = storeId;
        this.tallyId = tallyId;
        this.outPrice = outPrice;
        this.outNum = outNum;
        this.isOut = isOut;
    }
}